<template>
  <div>
    <ul class="icons">
        <li v-for="(item, index) in iconList" :key="index">
            <img :src="item.imgUrl" alt="">
            <span>{{item.title}}</span>
        </li>
    </ul>
  </div>
</template>

<script>
export default {
    data(){
        return{
            iconList:[
                {
                    id:1,
                    title:'自饮茶',
                    imgUrl:require('@/assets/img/icons1.png')
                },
                {
                    id:2,
                    title:'茶具',
                    imgUrl:require('@/assets/img/icons2.png')
                },
                {
                    id:3,
                    title:'茶礼盒',
                    imgUrl:require('@/assets/img/icons3.png')
                },
                {
                    id:4,
                    title:'领福利',
                    imgUrl:require('@/assets/img/icons4.png')
                },
                {
                    id:5,
                    title:'官方验证',
                    imgUrl:require('@/assets/img/icons5.png')
                },
            ]
        }
    }
}
</script>

<style scoped>
.icons{
    display: flex;
    justify-content: space-around;
    padding: 19px 0;
}
.icons li {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.icons img{
    width: 38px;
    height: 38px;
}
.icons span{
    font-size: 16px;
    padding: 8px 0;
}
</style>